﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AgentBar.Common
{
    public class LanguageResourceManager
    {
        private System.Resources.ResourceManager m_res;
        public LanguageResourceManager(string language)
        {
            string lan = "";
            lan = "LAN_" + language;
            m_res = System.Resources.ResourceManager.CreateFileBasedResourceManager(lan, ".", null);

        }
        public string GetString(string name)
        {
            if (string.IsNullOrEmpty(m_res.GetString(name)))
                return "";
            else
                return (m_res.GetString(name));
        }
    }
}
